package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods implements Serializable {
    /**
     * 
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 对应店铺
     */
    @TableField(value = "shop_id")
    private Integer shopId;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品描述
     */
    @TableField(value = "goods_description")
    private String goodsDescription;

    /**
     * 商品展示主图
     */
    @TableField(value = "display_url")
    private String displayUrl;

    /**
     * 商品审核转态 0--未审核 1--审核成功  2--审核失败
     */
    @TableField(value = "check_flag")
    private Integer checkFlag;

    /**
     * 删除标志  0--未删除  1--删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 购买次数
     */
    @TableField(value = "buy_num")
    private Integer buyNum;

    /**
     * 收藏次数
     */
    @TableField(value = "start_num")
    private Integer startNum;

    /**
     * 评论次数
     */
    @TableField(value = "commit_num")
    private Integer commitNum;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 上架状态 0--未上架  1--上架了
     */
    @TableField(value = "sell_flag")
    private Integer sellFlag;

    private Integer browseNum;

    @TableField(exist = false)
    private List<String> detailImages;

    @TableField(exist = false)
    private List<GoodsPackage> packages;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}